#include "../include/defs.h"
#include "../include/libc.h"
#include "../include/video.h"
#include "../include/teclado.h"

extern keyboard;
extern posicion;

void
shell(void)
{
	char cadena[] = {"hola"};
	
	inicializarTeclado();
	inicializa_video();

	while(1)
	{
	
	}

	return;
}

int
vercomando(unsigned char* buffer)
{
	if(!strcmp(buffer,"clear") )
	{
		inicializa_video();
		return 1;
	}
	
	if(!strcmp(buffer, "teclado ingles") )
	{
		keyboard=0;
		return 1;
	}

	if(!strcmp(buffer, "teclado espanol") )
	{
		keyboard=1;
		return 1;
	}
	if( !strcmp(buffer, "listar pci") )
	{
		listPci();
		return 1;
	}
	if ( !strcmp (buffer, "") )
	{
		return 1;
	}

	prnString("ERROR: Comando invalido.");
	prnEnter();
	prnEnter();

	return 0;
}
